/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.employee.entity;

import com.thinkgem.jeesite.modules.sys.entity.Office;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 员工提成Entity
 * @author jyangye
 * @version 2018-02-06
 */
public class ViEmpSTicheng extends DataEntity<ViEmpSTicheng> {
	
	private static final long serialVersionUID = 1L;
	private String employeeId;		// 员工信息

	private String name;		// 姓名
	private String code;		// 身份证
	private Double ticheng;		// 提成
	private Integer year;		// 年份
	private Integer month;		// 月份

    private Office comp;
    private Office dept;
    private Office post;
	
	public ViEmpSTicheng() {
		super();
	}

	public ViEmpSTicheng(String id){
		super(id);
	}

	@Length(min=0, max=32, message="员工信息长度必须介于 0 和 32 之间")
	@ExcelField(title="员工信息", align=2, sort=20)
	public String getEmployeeId() {
		return employeeId;
	}

	public void setEmployeeId(String employeeId) {
		this.employeeId = employeeId;
	}

    public Office getComp() {
        return comp;
    }

    public void setComp(Office comp) {
        this.comp = comp;
    }
    @ExcelField(title="部门", align=2, sort=40)
    public Office getDept() {
        return dept;
    }

    public void setDept(Office dept) {
        this.dept = dept;
    }
    @ExcelField(title="岗位", align=2, sort=50)
    public Office getPost() {
        return post;
    }

    public void setPost(Office post) {
        this.post = post;
    }

    @Length(min=1, max=32, message="姓名长度必须介于 1 和 32 之间")
	@ExcelField(title="姓名", align=2, sort=60)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=1, max=32, message="身份证长度必须介于 1 和 32 之间")
	@ExcelField(title="*身份证", align=2, sort=70, isText = true)
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@NotNull(message="提成不能为空")
	@ExcelField(title="*提成", align=2, sort=80)
	public Double getTicheng() {
		return ticheng;
	}

	public void setTicheng(Double ticheng) {
		this.ticheng = ticheng;
	}
	
	@ExcelField(title="*年份", align=2, sort=90)
	public Integer getYear() {
		return year;
	}

	public void setYear(Integer year) {
		this.year = year;
	}
	
	@ExcelField(title="*月份", align=2, sort=100)
	public Integer getMonth() {
		return month;
	}

	public void setMonth(Integer month) {
		this.month = month;
	}
	
}